
<template>
  <el-card shadow="hover" class="chart-card">
    <template #header>
      <div class="card-header">
        <span>{{ title }}</span>
      </div>
    </template>
    <slot></slot>
  </el-card>
</template>

<script setup lang="ts">
defineProps({
  title: {
    type: String,
    required: true
  }
})
</script>

<style scoped>
.chart-card {
  margin-bottom: 20px;

}.card-header {
    font-weight: bold;
  }

  :deep(.el-card__body) {
    padding: 10px;
  }

</style>